package com.example.sup.conttroller.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @ClassName LoginRequest
 * @Description {TODO}
 * @Author 李哲
 * @Date 15:29 2024/7/19
 * @Version 1.0
 */
@Data
public class LoginRequest implements Serializable {
    @NotNull
    @NotBlank
    @Size(min = 5, max = 10, message = "用户名长度必须在5-10之间")
    private String username;

    @NotNull
    @NotBlank
    @Size(min = 5, max = 10, message = "用户密码必须在5-10之间")
    private String password;


}
